/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.meter.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springblade.core.tenant.mp.TenantEntity;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 合同表实体类
 *
 * @author John
 * @since 2020-08-15
 */
@Data
@TableName("t_contract")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Contract对象", description = "合同表")
public class Contract extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 合同编号
	*/
		@ApiModelProperty(value = "合同编号")
		private Long contractNo;
	/**
	* 合同类型：1、预付费；2、后付费
	*/
		@ApiModelProperty(value = "合同类型：1、预付费；2、后付费")
		private Integer contractType;
	/**
	* 透支额度
	*/
		@ApiModelProperty(value = "透支额度")
		private BigDecimal overAmount;
	/**
	* 充值手续费
	*/
		@ApiModelProperty(value = "充值手续费")
		private BigDecimal chargeFee;
	/**
	* 文档ID
	*/
		@ApiModelProperty(value = "文档ID")
		private Long docId;
	/**
	* 结算户ID
	*/
		@ApiModelProperty(value = "结算户ID")
		private Long accountId;
	/**
	* 用电户ID
	*/
		@ApiModelProperty(value = "用电户ID")
		private Long memberId;
	/**
	* 客户ID
	*/
		@ApiModelProperty(value = "客户ID")
		private Long customerId;
	/**
	* 计费模板id
	*/
		@ApiModelProperty(value = "计费模板id")
		private Long feeTemplateId;
	/**
	* 合同起始时间
	*/
		@ApiModelProperty(value = "合同起始时间")
		private LocalDateTime startDate;
	/**
	* 合同到期时间
	*/
		@ApiModelProperty(value = "合同到期时间")
		private LocalDateTime endDate;
	/**
	* 合同电价
	*/
		@ApiModelProperty(value = "合同电价")
		private BigDecimal contractPrice;
	/**
	* 输配电价
	*/
		@ApiModelProperty(value = "输配电价")
		private BigDecimal transportationPrice;
	/**
	* 线损电价
	*/
		@ApiModelProperty(value = "线损电价")
		private BigDecimal lineLossPrice;
	/**
	* 基金电价
	*/
		@ApiModelProperty(value = "基金电价")
		private BigDecimal fundPrice;
	/**
	* 单价
	*/
		@ApiModelProperty(value = "单价")
		private BigDecimal price;
	/**
	* 无功标准
	*/
		@ApiModelProperty(value = "无功标准")
		private BigDecimal idlePowerStandard;
	/**
	* 最大需量/电压容量
	*/
		@ApiModelProperty(value = "最大需量/电压容量")
		private BigDecimal maxRequireVoltage;
	/**
	* 用电单位
	*/
		@ApiModelProperty(value = "用电单位")
		private String electricUnit;
	/**
	* 签署日期
	*/
		@ApiModelProperty(value = "签署日期")
		private LocalDateTime signatureDate;
	/**
	* 供电容量(kVA)
	*/
		@ApiModelProperty(value = "供电容量(kVA)")
		private BigDecimal capacity;
	/**
	* 抄表周期(日)
	*/
		@ApiModelProperty(value = "抄表周期(日)")
		private String cycle;
	/**
	* 抄表例日(日)
	*/
		@ApiModelProperty(value = "抄表例日(日)")
		private String meterReading;
	/**
	* 是否费控用户
	*/
		@ApiModelProperty(value = "是否费控用户")
		private Integer costFlag;
	/**
	* 法定代表人
	*/
		@ApiModelProperty(value = "法定代表人")
		private String legalPerson;
	/**
	* 附件
	*/
		@ApiModelProperty(value = "附件")
		private String filePath;
	/**
	* 版本
	*/
		@ApiModelProperty(value = "版本")
		private String version;


}
